package com.wu.cloud.support.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TestController {
    @Value("${server.port}")
    int port;

    @RequestMapping("/test/{name}")
    public String test(@PathVariable String name) {
        System.out.println("访问到了服务提供者");
        return name+"来自于端口:"+port;
    }
}
